﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public class BLLClient
{
    DatabaseDataContext Context;

    public BLLClient()
	{
        Context = new DatabaseDataContext();
	}
    public List<Client> GetClients()
    {
        List<Client> list = new List<Client>();
        try
        {
            list = (from c in Context.Clients select c).OrderBy(c => c.Name).ToList();
        }
        catch
        {}
        
        return list;
    }
}